import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import kxFeePieChart from "./index";

const meta = {
  title: "饼图/可信项目费用-kxFeePieChart",
  component: kxFeePieChart,
  tags: ["autodocs"],
  argTypes: {},
  decorators: [
    (Story) => (
      <div
        style={{ backgroundColor: "#031857", height: "250px", width: "440px" }}
      >
        <Story />
      </div>
    ),
  ],
} satisfies Meta<typeof kxFeePieChart>;

export default meta;
type Story = StoryObj<typeof meta>;

export const basic: Story = {
  args: {
    dataSource: [
      {
        name: "人工",
        amount: 63156,
      },
      {
        name: "材料",
        amount: 126313,
      },

      {
        name: "机械",
        amount: 15789,
      },
      {
        name: "费用",
        amount: 60971,
      },
    ],
  },
};
